<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/js-cookie/2.2.1/js.cookie.js"></script>
</head>
<body>
    
</body>
<script>
    // localStorage.setItem("data",'hello')
    // localStorage.setItem("item",'hello')
    // var data = localStorage.getItem("data")
    // console.log(data);
    // // localStorage.clear()
    // localStorage.removeItem("data")
    // localStorage.removeItem("item")
    // sessionStorage.setItem("data", '你好')
    // console.log(sessionStorage.getItem("data"));
    // 创建一个cookie，7天后过期
    // Cookies.set("name","this is a test cookie",{ expires: 7 }) 
    // // 获取cookie
    // var name = Cookies.get("name") 
    // console.log(name);
    // // 移除cookie
    // Cookies.remove("name");
    window.navigator.geolocation.getCurrentPosition(position=>{
    console.log(position);
})


</script>
</html>